﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace spriteData
{
    class XRectangle
    {
        public XRectangle(int x, int y, int width, int height)
        {
            this.x = x;
            this.y = y;
            this.width = width;
            this.height = height;
        }
        private int x;
        private int y;
        private int width;
        private int height;
        public int X
        {
            get { return this.x; }
            set { this.x = value; }
        }
        public int Y
        {
            get { return this.y; }
            set { this.y = value; }
        }
        public int Width
        {
            get { return this.width; }
            set { this.width = value; }
        }
        public int Height
        {
            get { return this.height; }
            set { this.height = value; }
        }
        public void serial(BinaryWriter  bw)
        {
            bw.Write(x);
            bw.Write(y);
            bw.Write(width);
            bw.Write(height);
        }

    }
}
